//
//  MyViewController.h
//  CoreData
//
//  Created by ibokan on 14-11-4.
//  Copyright (c) 2014年 ibokan. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Person.h"

@class MyTableViewController;
@interface MyViewController : UIViewController

@property (strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (strong, nonatomic) MyTableViewController *myTableViewController;

@property (strong, nonatomic) IBOutlet UITextField *nameTextField;
@property (strong, nonatomic) IBOutlet UITextField *phoneNoTextField;
- (IBAction)done:(UIBarButtonItem *)sender;
- (IBAction)updateAllData:(UIButton *)sender;

@property (strong, nonatomic) IBOutlet UIButton *imageBtn;

@property (strong, nonatomic) IBOutlet UIBarButtonItem *doneBtn;
@property (strong, nonatomic) IBOutlet UIButton *updateBtn;

@property(strong,nonatomic)NSString *name;
@property(strong,nonatomic)Person *person;
@end
